package com.javaweb.model;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * @desc:
 * @author: Ping
 * @date: 2024/10/28 10:00
 */

@Data@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class UserVo {

    private String username ;
    private String password ;

    // constructors
//    public UserVo() {}
//    public UserVo(String username, String password) {
//        this.username = username;
//        this.password = password;
//    }
    // getters and setters
//    public String getUsername() { return username; }
//    public void setUsername(String username) { this.username = username; }
//    public String getPassword() { return password; }
//    public void setPassword(String password) { this.password = password;    }

    // to string and hashcode
    @Override
    public String toString() {
        return "UserVo{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
    @Override
    public int hashCode() { return username.hashCode() + password.hashCode();}


}
